#include "log_file.h"

#define WriteLine(string) { write (string, strlen (string), 1); \
                            write ("\n",   1,               1); \
                          }

void
eTB_LogFile::Status (int level, const char* description, ...)
{
  // The status message is too unimportant to log...
  if (level < status_range_.getMin ())
    return;

  if (level > status_range_.getMax ()) {
    MessageBox (NULL, "Foo", "Bar", MB_OK);
  }

  WriteLine (description);
}